<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/inc/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>台账</title>
<link rel="stylesheet" type="text/css"
	href="http://www.jeasyui.com/easyui/themes/icon.css">
<%@include file="/inc/head.jsp"%>
<script type="text/javascript">
	$(function InitGrid() {
		$("#dlg").dialog('close');
		$("#dlg1").dialog('close');
		$("#dlg2").dialog('close');
		$('#grid')
				.datagrid(
						{ //定位到Table标签，Table标签的ID是grid
							url : '${ctx}/sys/jzrq/list', //指向后台的Action来获取当前菜单的信息的Json格式的数据
							iconCls : 'icon-view',
							width : function() {
								return document.body.clientWidth * 0.9;
							},
							collapsible : true,
							loadMsg : '数据加载中,请稍后......',
							pagination : true,
							pageSize : 100,
							pageList : [ 50, 100, 200 ],
							sortOrder : 'asc',
							idField : 'id',
							onDblClickRow : onClickRow,
							queryParams : {
							}, //异步查询的参数
							columns : [ [ {
								field : 'id',
								checkbox : true
							}, //选择
							{
								title : '结转前年月',
								width : 150,
								field : 'ny',
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								}
							}, {
								title : '记账日期',
								width : 100,
								field : 'jzrq',
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								}
							}, {
								title : '记账人',
								width : 200,
								field : 'jzr',
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								}
							}, {
								title : '记账标志',
								width : 150,
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								},
								field : 'jzbz',
								formatter : function(value, obj) {
									var $value = "";
									if (value == "1" ) {
										$value = "记账";
									} 
									else{
										$value = "退帐";
									}
									return $value;
								} 
							}, {
								title : '库房',
								width : 200,
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								},
								field : 'kfid'
							}, {
								title : '记账单位',
								width : 170,
								editor : {
									type : 'validatebox',
									options : {
										required : true
									}
								},
								field : 'sydwid'
							}] ],
							toolbar : [
									 {
										id : 'btnView',
										text : '刷新',
										iconCls : 'icon-reload',
										handler : function() {
											location.reload();
										}
									}, '-', {
										id : 'btnView',
										text : '导出Excel',
										iconCls : 'icon-redo',
										handler : function() {
											window.location.href = '../fc/excelout.ak';
										}
									} ]
						});
	});
	
	</script>
<style type="text/css">
.Serchform {
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
}
</style>
</head>
<body>
	<div class="easyui-layout">
		<div id="search_area">
			<div id="conditon">
				<div class="Serchform" id="btnSearch">
					<form action="../fc/toTaizhangUi.ak" method="post">
					库房：<select>
					<option>采办库</option>
					<option>物料站库</option>
					<option>井控库</option>
					<option>轮南库</option>
					<option>库车库</option>
					<option>塔中库</option>
					<option>国外库</option>
					</select>
						<input type="submit" style="width: 100px;" iconCls="icon-search" value="查询">
					</form>
				</div>
			</div>
		</div>
		<table id="grid" style="width: 1024px;height: 650px; *height:600px; ">
		</table>
		
	</div>
	
	
</body>
</html>
